import com.sun.org.apache.bcel.internal.generic.NEW;
import sun.plugin.javascript.navig.Array;

import java.io.DataOutput;
import java.util.Arrays;
import java.util.List;

public class Person3 {
    public static void main(String[] args) {

        Persons p2 = new Persons("3","MING","23", Arrays.asList("麻辣","清汤","微辣"),new String[]{"篮球","足球","排球"});
        Persons P3 = new Persons("4","LI","24",Arrays.asList("火锅","香锅","麻辣拌"),new String[]{"足球","台球","篮球"});

        List<String> ming = p2.getChiLike();
        List<String> li  = P3.getChiLike();
        for (int i = 0; i < ming.size() ; i++) {
             String mm = ming.get(i);
             String ll =li.get(i);
            System.out.println(mm);
            System.out.println(ll);

            String lm = ll + mm;
            li.set(i,lm);
        }
        System.out.println("---------------------------------------------------");




    }



}
